﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AjaxUpdate.aspx.cs" Inherits="ShoppingApp.AjaxUpdate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="Addr_Id" 
                DataSourceID="SqlDataSource1" PageSize="3">
                <Columns>
                    <asp:BoundField DataField="Addr_Id" HeaderText="Addr_Id" InsertVisible="False" 
                        ReadOnly="True" SortExpression="Addr_Id" />
                    <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                    <asp:BoundField DataField="Street" HeaderText="Street" 
                        SortExpression="Street" />
                </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ShoppingAppDbConnectionString %>" 
                SelectCommand="SELECT * FROM [Addresses]"></asp:SqlDataSource>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

